package demo;


import demo.api.ServerApi;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

@RestController
public class BestUse1 implements ServerApi {
    @Override
    public String productId(String msg) {
        System.out.println(msg);
        return msg;
    }

    @Override
    public String productId2(List<String> list2, Set<Integer> set) {
        String s = list2.toString() + " " + set.toString();
        System.out.println(list2.toString() + " " + set.toString());
        return s;
    }

    @Override
    public String productId3(String msg) {
        return msg;
    }

}
